import { ProductKeyMCM1, ProductKeyQCGW } from "@/consts/product";

export default {
  products:{
    productPage:{
      // 页面标题和按钮
      pageTitle: "Product Management",
      addProduct: "Add Product",
      editProduct: "Edit Product",
      deleteProduct: "Delete Product",
      submit: "Submit",
      reset: "Reset",
      close: "Close",
      refreshList: "Refresh",

      // 产品信息字段
      productName: "Product Name",
      productKey: "Product Key",
      deviceType: "Device Type",
      productDescription: "Product Description",
      productVersion: "Product Version",
      activationStatus: "Activation Status",
      remark: "Remark",
      image: "Image",
      productId: "Product ID",

      // 设备类型选项
      directDevice: "Direct Device",
      gatewayDevice: "Gateway Device",
      subDevice: "Sub-device",
      unknownType: "Unknown Type",

      // 状态选项
      inactive: "Inactive",
      active: "Active",
      online: "Online",
      offline: "Offline",

      // 操作提示
      deleteConfirm: "Are you sure you want to delete this product? It cannot be recovered after deletion.",
      deleteSuccess: "Product deleted successfully",
      deleteFailed: "Failed to delete product",
      addSuccess: "Product added successfully",
      addFailed: "Failed to add product",
      updateSuccess: "Product updated successfully",
      updateFailed: "Failed to update product",
      getListFailed: "Failed to load product list",
      getDetailsFailed: "Failed to get product details",

      // 表单提示
      enterProductName: "Please enter product name",
      selectProductKey: "Please select product key",
      selectDeviceType: "Please select device type",
      enterProductDescription: "Please enter product description",
      enterProductVersion: "Please enter product version",
      selectActivationStatus: "Please select activation status",
      enterRemark: "Please enter remark",
      uploadImageHint: "Support JPG, PNG format, size not exceeding 2MB",

      // 空状态
      noProductData: "No product data",

      // 配置相关
      config: "Config",
      productConfig: "Product Config",
      deptProductConfig: "Department Product Config",

      // 元数据标签
      metaLabel: {
        productKey: "Product Key:",
        deviceType: "Device Type:",
        status: "Status:",
        version: "Version:",
        createTime: "Creation Time:"
      },
      ProductKeyQCGW:"QingCheng-Gateway",
      ProductKeyMCM1:"Multi-Channel-RAEM1",
      aeWave:"AE WAVE",
      viWave:"Vi Wave",
      domain: "Domain",
      timeDomain: "Time Domain",
      frequencyDomain: "Frequency Domain",
    },
    deviceGroupPage:{
      confirmDelete: 'Are you sure you want to delete this device group?',
      confirmTitle: 'Confirm Deletion',
      // 页面标题
      pageTitle: "Device Group Management",

      // 按钮文本
      addGroup: "Add Group",
      editGroup: "Edit Group",
      deleteGroup: "Delete Group",
      configGroup: "Configure",

      // 分组信息字段
      groupId: "Group ID",
      groupKey: "Group Key",
      groupName: "Group Name",
      purpose: "Purpose",
      dept: "Department",
      remark: "Remark",
      parentGroup: "Parent Group",
      createdAt: "Creation Time",
      deptName: "Department Name",

      // 用途选项
      purposeOptions: {
        normal: "Normal",
        test: "Test",
        production: "Production"
      },

      // 操作提示
      getDetailsFailed: "Failed to get device group details",
      updateSuccess: "Device group updated successfully",
      updateFailed: "Failed to update device group",
      addSuccess: "Device group added successfully",
      addFailed: "Failed to add device group",
      deleteSuccess: "Device group deleted successfully",
      deleteFailed: "Failed to delete device group",

      // 表单提示
      groupKeyHint: "Meaningful combination of letters and numbers",

      // 搜索相关
      searchByName: "Group Name",
      searchPlaceholder: "Please enter group name",

      // 空状态
      noData: "No device group data",

      // 表格列
      serialNumber: "Serial Number",
      operation: "Operation",
      childGroup: "Child Group",

      // 提示文本
      rootGroupTip: "Select parent group (not selected for root group)"
    },
    devicePage:{
      pageTitle: "Device Management",

      // Button text
      addDevice: "Add Device",
      batchAdd: "Batch Add",
      edit: "Edit",
      delete: "Delete",
      config: "Configure",
      manage: "Manage",
      generateDevices: "Generate Device List",
      submitBatchAdd: "Submit Batch Add",

      // Device info fields
      deviceNo: "Device No.",
      name: "Device Name",
      channelNo: "Channel No.",
      productId: "Product",
      deptId: "Department",
      groupId: "Device Group",
      type: "Device Type",
      remark: "Remark",
      lng: "Longitude",
      lat: "Latitude",
      address: "Address",
      image: "Image",
      openStatus: "Activation Status",
      parentId: "Parent Device ID",
      networkType: "Network Type",
      version: "Firmware Version",
      lastOnline: "Last Online",
      productName: "Product Name",

      // Device type options
      directDevice: "Direct Device",
      gatewayDevice: "Gateway Device",
      childDevice: "Child Device",

      // Activation status options
      notActivated: "Not Activated",
      activated: "Activated",

      // Device status
      online: "Online",
      offline: "Offline",

      // Operation tips
      deleteSuccess: "Device deleted successfully",
      deleteFailed: "Failed to delete device",
      addSuccess: "Device added successfully",
      addFailed: "Failed to add device",
      updateSuccess: "Device updated successfully",
      updateFailed: "Failed to update device",
      getDetailFailed: "Failed to get device details",
      batchAddSuccess: "Successfully added {count} devices",
      batchAddFailed: "Error occurred during batch addition",

      // Form hints
      deviceNoPlaceholder: "Please enter device number",
      namePlaceholder: "Please enter device name",
      channelNoPlaceholder: "Please enter channel number",
      parentIdPlaceholder: "Please enter parent device ID",
      lngPlaceholder: "Please enter longitude",
      latPlaceholder: "Please enter latitude",
      addressPlaceholder: "Please enter device address",
      remarkPlaceholder: "Please enter remark information",
      prefixPlaceholder: "e.g. qc_",
      startNumPlaceholder: "e.g. 001",
      endNumPlaceholder: "e.g. 010",
      startNum:"Start Number",
      endNum:"End Number",
      // Upload hints
      uploadImgHint: "Support JPG, PNG format, size no more than 2MB",

      // Delete confirmation
      deleteConfirmMsg: "Are you sure to delete this device? It cannot be recovered after deletion.",
      deleteConfirmTitle: "Delete Confirmation",

      // Search related
      searchPlaceholder: "Please enter search keyword",

      // Empty state
      noData: "No device data",

      // Table columns
      deviceImage: "Device Image",
      deviceInfo: "Device Info",
      deviceActions: "Actions",

      // Tips
      deviceNoNotEditable: "Device number cannot be modified",
      lastTime: "Last Time",
      parentDevice:"Parent Device",
      selectParentDevice: "Select parent device",
    },
    firmwarePage:{
      manage: 'Manage',
      confirmDelete: 'Are you sure you want to delete this firmware?',
      confirmTitle: 'Confirm Deletion',
      // Page title
      pageTitle: "Firmware Management",

      // Button text
      addFirmware: "Add Firmware",

      // Firmware info fields
      firmwareName: "Firmware Name",
      productName: "Product Name",
      firmwareVersion: "Firmware Version",
      firmwarePart: "Firmware Part",
      storageLocation: "Storage Location",
      fileMd5: "File MD5",
      firmware: "Firmware",
      appFileId: "Platform File ID",
      firmwareDescription: "Firmware Description",
      image: "Image",
      firmwareId: "Firmware ID",

      // Storage location options
      local: "Local",
      other: "Other",

      // Action tips
      addFirmwareSuccess: "Firmware added successfully",
      addFirmwareFail: "Failed to add firmware",
      updateFirmwareSuccess: "Firmware updated successfully",
      updateFirmwareFail: "Failed to update firmware",
      deleteFirmwareSuccess: "Firmware deleted successfully",
      deleteFirmwareFail: "Failed to delete firmware",

      // Form tips
      pleaseEnterFirmwareName: "Please enter firmware name",
      pleaseEnterFirmwareVersion: "Please enter firmware version",
      pleaseSelectProduct: "Please select product",
      pleaseEnterFirmwarePart: "Please enter firmware part",
      pleaseEnterFileMd5: "Please enter file MD5",
      pleaseEnterAppFileId: "Please enter platform file ID",
      pleaseEnterFirmwareDescription: "Please enter firmware description",
      firmwareSourceLegal: "Please ensure the firmware source is legal and complete",
      imageFormatSupport: "Supports JPG, PNG formats, size no more than 2MB",

      // Search related
      searchFirmwareName: "Please enter firmware name",
      searchFirmwareVersion: "Please enter firmware version",
      searchFirmwarePart: "Please enter firmware part",

      // Empty state
      noFirmwareData: "No firmware data",

      // Table columns
      firmwareActions: "Actions",

      // Tips
      createdAt: "Creation Time"
    }
  }
}
